home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Sessions / Completions / Completions Source / Files / CatInfoChanger.h < prev    next >
Encoding:
Text File  |  1998-06-19  |  642 b   |  41 lines  |  [TEXT/CWIE]

  1. // CatInfoChanger.h
  2.  
  3. #ifndef CatInfoChanger_h
  4. #define CatInfoChanger_h
  5.  
  6. #ifndef A5_h
  7. #include "A5.h"
  8. #endif
  9. #ifndef Task_h
  10. #include "Task.h"
  11. #endif
  12. #ifndef __FILES__
  13. #include <Files.h>
  14. #endif
  15.  
  16. class CatInfoChanger: public CInfoPBRec,
  17.                              private Task
  18.   {
  19.     private:
  20.         A5 a5;
  21.         bool getting;
  22.         
  23.         virtual void Launch();
  24.         virtual void Kill();
  25.  
  26.         static void Complete( CInfoPBRec *block );
  27.         static void CompleteGlue();
  28.  
  29.         bool Running() const        { return hFileInfo.ioResult > 0; }
  30.  
  31.     public:
  32.         CatInfoChanger();
  33.         
  34.         Task *Get( const FSSpec& );
  35.         Task *Set( const FSSpec& );
  36.  
  37.         OSErr Error() const        { return hFileInfo.ioResult; }
  38.   };
  39.  
  40. #endif
  41.